<script>
    //    $(function() {
    //        $('.error').hide();
    //        $("#submit").click(function() {
    //            // validate and process form here
    //            $('.error').hide();
    //            var name = $("input#username").val();
    //            if (name.length < 5) {
    //                $("label#name_error").show();
    //                $("input#username").focus();
    //                return false;
    //            }
    //        });
    //    });
    //    
</script>
<div class="box">
    <h4 class="white">Create new user</h4>
    <div class="box-container">
        <form action="/user/add" method="post" class="middle-forms" id="user-form" name="user-form">
            <p>Please complete the form below. Mandatory fields marked <em>*</em></p>
            <fieldset>
                <legend>Fieldset Title</legend>
                <ol>
                    <li>
                        <label class="field-title">Fullname <em>*</em>:</label> 
                        <label><input class="txtbox-long required" id="fullname" value="<?php echo $this->values['fullname'] ?>" name="fullname"/>
                        </label>
                        <span class="clearFix">&nbsp;</span>
                    </li>
                    <li class="even">
                        <label class="field-title">Username <em>*</em>:</label> 
                        <label><input id="username" class="txtbox-long required" value="<?php echo $this->values['username'] ?>" name="username"/></label>
                        <span class="clearFix">&nbsp;</span>
                    </li>
                    <li>
                        <label class="field-title">Password <em>*</em>:</label> 
                        <label><input id="password" type="password" class="txtbox-long required" name="password"/></label>
                        <span class="clearFix">&nbsp;</span>
                    </li>
                    <li class="even">
                        <label class="field-title">Repeat Password <em>*</em>:</label> 
                        <label><input type="password" class="txtbox-long required equalTo" equalto="#password" id="repassword" name="repassword"/></label>
                        <span class="clearFix">&nbsp;</span>
                    </li>
                    <li>
                        <label class="field-title">Position <em>*</em>:</label> 
                        <label><input class="txtbox-long required" value="<?php echo $this->values['position'] ?>" name="position"/></label>
                        <span class="clearFix">&nbsp;</span>
                    </li>
                    <li class="even">
                        <label class="field-title">Email <em>*</em>:</label> 
                        <label><input class="txtbox-long required email" value="<?php echo $this->values['email'] ?>" name="email"/></label>
                        <span class="clearFix">&nbsp;</span>
                    </li>
                    <li>
                        <label class="field-title">Tel <em>(optional)</em>:</label> 
                        <label><input id="tel" class="txtbox-long digits phone" value="<?php echo $this->values['tel'] ?>" name="tel"/></label>
                        <span class="clearFix">&nbsp;</span>
                    </li>
                    <li class="even">
                        <label class="field-title">Skype/Yahoo <em>(optional)</em>:</label> 
                        <label><input class="txtbox-long" name="yahoo-skype"/></label>
                        <span class="clearFix">&nbsp;</span>
                    </li>
                    <li>
                        <label><input type="checkbox" checked value="" name="isActive"/>Is Active?</label>
                    </li>
                </ol><!-- end of form elements -->
            </fieldset>
            <div class="align-left inner-nav" style="width:100px; float: left">
                <span class="sb"><input type="submit" name="update" value="Create"/></span>
            </div><span class="clearFix">&nbsp;</span>
            <?php echo isset($message) ? $message : ""; ?>
            <span class="clearFix">&nbsp;</span>
        </form>
    </div>
</div>